home *** CD-ROM | disk | FTP | other *** search
- /*
- * EOT_Punch.ifx.pre
- * Written by Thomas Krehbiel
- *
- * Animated Punch (Warp) Effect.
- *
- * Inputs:
- * Word(Arg(1),1) = Sequence number (?)
- * Word(Arg(1),2) = Total number of frames (N)
- *
- * Returns:
- * 0 if successful, non-zero on failure
- *
- */
-
- OPTIONS RESULTS
-
- base = 'Autofx_Punch_'
-
- start = GETCLIP(base||'Start')
- end = GETCLIP(base||'End')
-
- IF start = "" THEN start = 0
- IF end = "" THEN end = 100
-
- Gadget.1 = 'INTEGER 150 5 50 14 "Starting Strength:"' start
- Gadget.2 = 'INTEGER 150 20 50 14 "Ending Strength:"' end
- Gadget.3 = 'END'
-
- NewComplexRequest '"Punch"' Gadget 250 50
- IF rc ~= 0 THEN EXIT rc
-
- CALL SETCLIP(base||'Start', result.1)
- CALL SETCLIP(base||'End', result.2)
-
- EXIT
-